package sh.wn36.vehiclemanage.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author xk
 * @since 2021-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Car对象", description="")
public class Car implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String carNo;

    private Integer carBrand;

    private Integer carModel;

    private Integer carColor;

    private BigDecimal carLoad;

    private Integer carSeats;

    private BigDecimal oilWear;

    private Integer initMil;

    private Integer maintainMil;

    private Integer maintainPeriod;

    private String engineNum;

    private String frameNum;

    private Integer supId;

    private BigDecimal purchasePrice;

    private Date purchaseDate;

    private Integer deptId;

    private Integer carState;

    private String remarks;

    private Integer isdisable;

    @ApiModelProperty(value = "乐观锁")
    private Integer version;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改时间")
    private Date gmtModified;

}
